<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宿舍故事 - 温馨宿舍</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
    <style>
        :root {
            --primary-color: #4A90E2;
            --secondary-color: #F5A623;
            --accent-color: #FF6B6B;
            --text-color: #333;
            --bg-color: #f5f7fa;
            --glass-bg: rgba(255, 255, 255, 0.9);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        /* 头部样式 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
        }

        .nav-menu {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            transition: all 0.3s;
        }

        .nav-menu a:hover {
            background: var(--primary-color);
            color: white;
        }

        /* 主要内容区域 */
        .main-content {
            margin-top: 80px;
            padding: 2rem;
        }

        .page-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .page-title h1 {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .page-title p {
            color: #666;
            font-size: 1.1rem;
        }

        /* 宿舍日记部分 */
        .diary-section {
            max-width: 1200px;
            margin: 0 auto 4rem;
        }

        .diary-timeline {
            position: relative;
            padding: 2rem 0;
        }

        .diary-timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: var(--primary-color);
            opacity: 0.3;
        }

        .diary-entry {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            margin-bottom: 3rem;
            position: relative;
        }

        .diary-entry:nth-child(odd) {
            flex-direction: row-reverse;
        }

        .diary-content {
            width: 45%;
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            position: relative;
            transition: transform 0.3s;
        }

        .diary-content:hover {
            transform: translateY(-5px);
        }

        .diary-date {
            position: absolute;
            top: 50%;
            width: 120px;
            padding: 0.5rem;
            background: var(--primary-color);
            color: white;
            text-align: center;
            border-radius: 20px;
            transform: translateY(-50%);
        }

        .diary-entry:nth-child(odd) .diary-date {
            left: -60px;
        }

        .diary-entry:nth-child(even) .diary-date {
            right: -60px;
        }

        /* 宿舍回忆部分 */
        .memories-section {
            max-width: 1200px;
            margin: 0 auto 4rem;
            padding: 2rem;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .memories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .memory-card {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            aspect-ratio: 3/4;
        }

        .memory-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .memory-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            transform: translateY(100%);
            transition: transform 0.5s;
        }

        .memory-card:hover .memory-image {
            transform: scale(1.1);
        }

        .memory-card:hover .memory-content {
            transform: translateY(0);
        }

        /* 宿舍未来部分 */
        .future-section {
            max-width: 1200px;
            margin: 0 auto 4rem;
            padding: 3rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            color: white;
            text-align: center;
        }

        .future-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .future-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 2rem;
            border-radius: 15px;
            transition: transform 0.3s;
        }

        .future-card:hover {
            transform: translateY(-10px);
        }

        .future-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .diary-timeline::before {
                left: 0;
            }

            .diary-entry {
                flex-direction: column;
                align-items: flex-start;
                margin-left: 2rem;
            }

            .diary-entry:nth-child(odd) {
                flex-direction: column;
            }

            .diary-content {
                width: 100%;
            }

            .diary-date {
                left: -2rem !important;
                top: 0;
                width: auto;
                padding: 0.3rem 1rem;
            }

            .memories-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <header class="header">
        <div class="header-container">
            <a href="index.html" class="logo">温馨宿舍</a>
            <nav>
                <ul class="nav-menu">
                    <li><a href="index.html">首页</a></li>
                    <li><a href="index2.html">宿舍成员</a></li>
                    <li><a href="cht.html">宿舍生活</a></li>
                    <li><a href="lcz.html">宿舍故事</a></li>
                    <li><a href="cfx.html">关于我们</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <main class="main-content">
        <!-- 页面标题 -->
        <div class="page-title">
            <h1>我们的故事</h1>
            <p>记录温馨宿舍的点点滴滴，留下最美好的回忆</p>
        </div>

        <!-- 宿舍日记部分 -->
        <section class="diary-section">
            <div class="diary-timeline">
                <article class="diary-entry" data-aos="fade-up">
                    <div class="diary-content">
                        <h3>5人凑不齐一个脑子</h3>
                        <p class="author">by 政</p>
                        <p>第二学期期末，原本是下午2.30的考试，5人都没有看时间，都太信任彼此，5人早上7.30起床以为8.10考试，走到一半才发现不对劲，5人在路上面面相觑，转头就去食堂吃早餐</p>
                        <div class="diary-date">2024-01-15</div>
                    </div>
                </article>

                <article class="diary-entry" data-aos="fade-up">
                    <div class="diary-content">
                        <h3>共度摩羯</h3>
                        <p class="author">by 政</p>
                        <p>大大大台风摩羯到来前，宿舍一起去购买物资，买了好多水，面包，零食，在宿舍里贴胶布，一切准备就绪后，突然收到通知需要搬走，5人狼狈的搬走，开始了每天打牌的日子。</p>
                        <div class="diary-date">2024-01-10</div>
                    </div>
                </article>

                <article class="diary-entry" data-aos="fade-up">
                    <div class="diary-content">
                        <h3>吃鸡!</h3>
                        <p class="author">by 政</p>
                        <p>涛、校、顺、俊几个人迷上了PUBG，我也迷上了刺激战场，5人在宿舍里伴随着枪械的嘟嘟声，我们宿舍变成了特种兵宿舍</p>
                        <div class="diary-date">2024-01-05</div>
                    </div>
                </article>
            </div>
        </section>

        <!-- 宿舍回忆部分 -->
        <section class="memories-section">
            <h2>难忘时刻</h2>
            <div class="memories-grid">
                <div class="memory-card" data-aos="zoom-in">
                    <img src="img/memory1.jpg" alt="第一顿饭" class="memory-image">
                    <div class="memory-content">
                        <h3>我们的第一顿饭</h3>
                        <p>我们的第一顿饭吃的是烤鱼，是第一次好好认识对方的一次饭局</p>
                        <time>2023年9月</time>
                    </div>
                </div>

                <div class="memory-card" data-aos="zoom-in">
                    <img src="img/memory2.jpg" alt="生日" class="memory-image">
                    <div class="memory-content">
                        <h3>朝政生日合影</h3>
                        <p>宿舍5个人一起在朝政生日的时候留下了一张难忘的照片</p>
                        <time>2024年10月</time>
                    </div>
                </div>

                <div class="memory-card" data-aos="zoom-in">
                    <img src="img/memory3.jpg" alt="照片" class="memory-image">
                    <div class="memory-content">
                        <h3>拍照打卡</h3>
                        <p>一次学校突击检查宿舍，我们拍下了搞笑照片</p>
                        <time>2024年11月</time>
                    </div>
                </div>
            </div>
        </section>

        <!-- 宿舍未来部分 -->
        <section class="future-section" data-aos="fade-up">
            <h2>未来寄语</h2>
            <div class="future-grid">
                <div class="future-card">
                    <i class="fas fa-star future-icon"></i>
                    <h3>追逐梦想</h3>
                    <p>愿我们都能勇敢追逐自己的梦想，在未来的道路上互相支持，永远记得宿舍里的欢声笑语。</p>
                </div>

                <div class="future-card">
                    <i class="fas fa-heart future-icon"></i>
                    <h3>情谊长存</h3>
                    <p>无论未来走向何方，愿我们的友情永远长存，常常相聚，分享生活的喜怒哀乐。</p>
                </div>

                <div class="future-card">
                    <i class="fas fa-infinity future-icon"></i>
                    <h3>未来可期</h3>
                    <p>愿我们都能在各自的领域绽放光彩，未来的日子充满希望和可能。</p>
                </div>
            </div>
        </section>
    </main>

    <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
    <script>
        // 初始化AOS动画库
        AOS.init({
            duration: 1000,
            once: true
        });

        // 导航栏滚动效果
        let lastScroll = 0;
        window.addEventListener('scroll', () => {
            const header = document.querySelector('.header');
            const currentScroll = window.pageYOffset;

            if (currentScroll <= 0) {
                header.style.boxShadow = '0 2px 10px rgba(0,0,0,0.1)';
                return;
            }

            if (currentScroll > lastScroll) {
                header.style.transform = 'translateY(-100%)';
            } else {
                header.style.transform = 'translateY(0)';
                header.style.boxShadow = '0 2px 10px rgba(0,0,0,0.1)';
            }
            lastScroll = currentScroll;
        });
    </script>
</body>
</html> 